package top.hzy520.user.service;

import top.hzy520.user.dto.SearchUserDto;
import top.hzy520.user.entity.User;

import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 16:30 2018/7/31
 */
public interface UserService {
    List<User> selectAllUser(int offset, int limit);

    int selectAllcount();

    List<User> selectAllUserById(int i, int limit, Long id);

    int selectAllcountById(Long id);

    User selectUserByUserId(Long id);

    void updataUser(User user);

    void deleteUser(Long id);

    void deleteAllUser(List<User> userList);

    Long insertUser(User user);

    List<User> selectUserBySearch(SearchUserDto searchUserDto);

    int selectCountBySearch(SearchUserDto searchUserDto);

    boolean passwordCheck(String password);

    void resetPwd(User user, String password);

}
